package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtAsset;
import com.greyu.ysj.entity.CbtVote;
import com.greyu.ysj.entity.CbtVoteExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtVoteMapper {
    long countByExample(CbtVoteExample example);

    int deleteByExample(CbtVoteExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtVote record);

    int insertSelective(CbtVote record);

    List<CbtVote> selectByExample(CbtVoteExample example);

    CbtVote selectByPrimaryKey(Integer id);
    
    CbtVote selectByPrimaryKeyByUserID(Integer userId);

    int updateByExampleSelective(@Param("record") CbtVote record, @Param("example") CbtVoteExample example);

    int updateByExample(@Param("record") CbtVote record, @Param("example") CbtVoteExample example);

    int updateByPrimaryKeySelective(CbtVote record);

    int updateByPrimaryKey(CbtVote record);
}